package com.emellend.api.internal;

import com.emellend.api.view.InternalSelectionView;
import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ScrollView;

public class InternalSelectionScroll extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ScrollView sc=new ScrollView(this);
		ViewGroup.LayoutParams svLp=
				new ScrollView.LayoutParams(
						ViewGroup.LayoutParams.MATCH_PARENT,
						ViewGroup.LayoutParams.WRAP_CONTENT);
		
		LinearLayout ll=new LinearLayout(this);
		ll.setLayoutParams(svLp);
		sc.addView(ll);
		
		final InternalSelectionView isv=new InternalSelectionView(this, 10);
		int screenHeight = getWindowManager().getDefaultDisplay().getHeight();
		LinearLayout.LayoutParams llLp=
				new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,2*screenHeight);
		isv.setLayoutParams(llLp);
		ll.addView(isv);
		setContentView(sc);
	}
}
